#!/bin/bash

# ./build_desktop.sh <bindir> <pixmapsdir>

bindir=${1}
pixmapsdir=${2}

slashed_bindir=$(echo ${bindir} | sed 's/\//\\\//g')
slashed_pixmapsdir=$(echo ${pixmapsdir} | sed 's/\//\\\//g')

exec sed "s/\${BINDIR}/${slashed_bindir}/g; s/\${PIXMAPSDIR}/${slashed_pixmapsdir}/g;"
